package com.lipeng.service;

import com.lipeng.bean.User;
import com.lipeng.utils.AjaxResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/3/3.
 */
public interface UserService {
    List<User> selectAllUser();
    List<User> selectUserByName(String name);
    int addUser(User user);
    int delUser(Integer uid);
    int changeState( Integer ustate,Integer uid);

    //API
    User findUserByName(String name);
    AjaxResult doLogin(String uname,String upsw);
    AjaxResult updateUser(User user);
    AjaxResult selectUserById(Integer uid);
}
